<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2023/4/24
  Time: 10:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link href="CSS/Style1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="desDiv">
    <span>用户修改</span>
</div>
<div id="dataDiv">
    <form action="updateUser" method="post">
    <table class="tableEdit" style="width:50%;">
        <tr>
            <input type="hidden" name="userid" value="${crmUsers.userid}"/>
            <input type="hidden" name="userpwd" value="${crmUsers.userpwd}"/>
            <td>用户名：</td>
            <td>
                <input type="text" name="username" value="${crmUsers.username}"/>
            </td>
        </tr>
        <tr>
            <td>真实姓名：</td>
            <td>
                <input type="text" name="realname" value="${crmUsers.realname}" />
            </td>
        </tr>
        <tr>
            <td>角色：</td>
            <td>
            <c:forEach items="${allRoles}" var="role">

                <input type="checkbox" name="rdesc${role.rid}" value="${role.rdesc}"
                        <c:forEach items="${rolesList}" var="list">
                            <c:if test="${role.rname == list.rname}" >checked="checked"</c:if>true
                        </c:forEach>
                />${role.rdesc}

            </c:forEach>
<%--                <input type="checkbox" value=""/>销售主管--%>
<%--                <input type="checkbox" value=""/>销售专员--%>
            </td>
        </tr>
        <tfoot>
        <tr>
            <td colspan="2">
                <input type="submit" value="确定" />&nbsp;&nbsp;
                <input type="button" value="关闭" onclick="window.close()" />
            </td>
        </tr>
        </tfoot>
    </table>
    </form>
</div>
</body>
</html>
